<?php
/**
 * Created by PhpStorm.
 * User: xiong <1099446868@qq.com>
 * DateTime: 2018/11/2
 * TIME: 22:31
 */

namespace app\index\model;


use think\facade\Cookie;
use think\Model;

class BaseModel extends Model {


    public static function getSource(){
        if(Cookie::has('source')){
            $source = Cookie::get('source');
        }else{
            $source = 'zwdu';
        }
        return $source;
    }

}